C C -C Programming /C MCQS Interview Questions Sample Test,Sample questions

Question:
Ascii value of A is -

1.97

2.65

3.66

4.1


Question:
c language is-

1.modular programming

2.object oriented programming

3.threading programming

4.All of the above


Question:
Canvas programming in c are those which deal with the

1.header file

2.recursion

3.memory management

4.Geometrical graphics


Question:
Entry control loop are -

1.Every loop is entry control loop

2.those where condition are check at entry level

3.those where condition are check at exit level

4.All of the above


Question:
Entry control loops are-

1.for loop

2.while loop

3.do while loop

4.1 and 2


Question:
Execution of every c program starts with-

1.first line

2.main function

3.anywhere

4.None of the above


Question:
Exit control loop are -

1.for loop

2.while loop

3.do while loop

4.All of the above


Question:
Exit control loops are those

1.in which condition are check at entry level

2.in which condition are check at exit level

3.Both of the above

4.None of the above


Question:
exit() function are used to-

1.break the loop

2.exit the function call

3.exit the whole program

4.None of the above


Question:
exit() function were define in -

1.process header file

2.stdlib header file

3.Both of the above

4.None of the above


Question:
fabs() in c programming are in-

1.math header file

2.stdlib header file

3.stdio file

4.iostream file


Question:
for any type of looping we require-

1.initialization

2.condition

3.increment and decrement

4.All of the above


Question:
for creating random number, we use

1.rand() function

2.random() function

3.randno() function

4.All of the above


Question:
For recursion we require 

1.stack area

2.heap area

3.queue area

4.None of the above


Question:
for storing number 32768 as a integer, which one is valid ?

1.int

2.long int

3.Integer

4.None of the above


Question:
How many keywords are there in c ?

1.34

2.33

3.32

4.None of the above


Question:
How will you print “Hello World” without semicolon?

1.pass printf statement in conditional statements

2.pass printf statement in while and break the loop

3.Both of the above

4.None of the above


Question:
if the declaration of variable is outside the function then it is treated as

1.global variable

2.static variable

3. long variable

4.register variable


Question:
If we allocate memory by malloc in c then it goes to

1.Heap area

2.stack area

3.virtual memory

4.None of the above


Question:
int a 
this type of declaration is treated as:-

1.static

2.extern

3.auto

4.global


Question:
int a=1;
memory allocation is a type of

1.Heap

2.stack

3.both

4.none


Question:
is graphical programming possible by c language ?

1.No

2.Yes

3.Depend on compiler

4.None of the above


Question:
is it possible to create customized header file ?

1.YES

2.NO

3.Can not say

4.None of the above


Question:
Is nested loop exist in c programming-

1.Yes

2.No

3.Depend on compiler

4.updated version of c language support nested loop


Question:
Is that possible to store 32768 in an int data type variable ?

1.Yes

2.No

3.Depend on compiler

4.updated version of c language support nested loop


Question:
What are different storage class specifiers in C?

1.auto

2.static

3.register

4.All of the above


Question:
Nested loop is 

1.two loop , one by one run

2.one loop is always a nested loop

3.exit control is always a nested loop

4.loop inside loop


Question:
Null pointers are possible to use in -

1.As an error value

2.As a sentinel value

3.To terminate indirection in the recursive data structure

4.All of the above


Question:
rand() function are used to generate random number during execution of program, In which header file it is define ?

1.math

2.stdio

3.stdlib

4.process


Question:
smallest executable code in c is -

1.{}

2.void main(){}

3.main

4.All of the above


Question:
Swapping of two variable require minimum

1.two variable

2.three variable

3.one variable

4.None of the above


Question:
Types of loops in c -

1.for

2.while

3.do while

4.All of the above


Question:
void in c language is -

1.keyword

2.function

3.special data type without any value

4.void can be used in place of double


Question:
we can create loop by

1.for loop

2.goto statement

3.recursion

4.All of the above


Question:
What are local static variables ?

1.A local static variable is a variable whose lifetime does not end with a fu

2.It extends for the lifetime of complete program

3.All calls to the function share the same copy of local static variables

4.All of the above


Question:
What is Dangling pointer ?

1.pointer point the deallocated memory

2.pointer point to the NULL memory

3.pointer point to the valid memory area

4.All of the above


Question:
What is difference between i++ and ++i?

1.i++ is prefix while ++i is postfix

2.i++ is postfix while ++i is prefix

3.Both of the above

4.None of the above


Question:
What is difference between i++ and ++i?

1.i++ return value first then increment the i

2.#NAME?

3.#NAME?

4.1 and 3 are true


Question:
what is HEAP area ?

1.it is used for the objects allocated dynamically

2.it is used for the objects deallocated dynamically

3.HEAP is a memory allocation by int

4.None of the above


Question:
What is memory leak? 

1.Memory is free by the programmers after use of Heap memory

2.Memory leak occurs when programmers create a memory in heap and forget to d

3.Both of the above

4.None of the above


Question:
What is NULL pointer? 

1.NULL is used to indicate that the pointer doesnt point to a valid location.

2.NULL is used to indicate the end of link list

3.NULL pointer cannot point anything

4.None of the above


Question:
What is scope of a variable?

1.Scope of variable is declaration of variable

2.Scope of variable is calling of variable

3.Scope of a variable is the part of the program where the variable may direc

4.None of the above


Question:
What is stack area ?

1.It is used to store local variables and arguments of a method

2.It is used to allocate dynamic memory

3.Both of the above

4.None of the above


Question:
what is the cyclic nature of data type in c ?

1.they goes infinite when exceed range

2.they give error when exceed range

3.they goes back in cyclic form when exceed range

4.None of the above


Question:
What is the difference between declaration and definition of function in c ?

1.both are same

2.we always require declaration before definition

3.definition time we allocate memory

4.None of the above


Question:
When should we use pointers in a C program?

1.To get address of a variable

2.For achieving pass by reference in C

3.To implement link list data structure

4.All of the above


Question:
Which are the basic data type in c ?

1.int

2.float

3.char

4.All of the above


Question:
which of the following are modifier in c ?

1.short

2.long

3.signed

4.All of the above


Question:
which of the following are the modifier in c ?

1.int

2.float

3.char

4.None of the above


Question:
without the curly braces, the body of while loop is upto

1.two line

2.one line

3.no body of while

4.None of the above


More MCQS

  1. C++ Programming MCQS Set-1
  2. C++ Multiple Choice Questions Set-1
  3. C++ Multiple Choice Questions Set-2
  4. C++ Programming MCQS Set-2
  5. C++ Programming MCQS Set-3
  6. C++ Programming MCQS Set-4
  7. C++ (CPP) MCQ Question with Answer
  8. Advanced c++ multiple choice question(MCQS)
  9. OOPS Quiz Questions and Answers(MCQS)
  10. C Programming - MCQ Questions Set 1
  11. C Programming - MCQ Questions Set 2
  12. C Programming - MCQ Questions Set 3
  13. C Programming - MCQ Questions Set 4
  14. C Programming - MCQ Questions Set 5
  15. C++ programming language MCQ Questions Set 1
  16. C++ programming language MCQ Questions Set 2
  17. C++ programming language MCQ Questions Set 3
  18. C++ programming language MCQ Questions Set 4
  19. C++ programming language MCQ Questions Set 5
  20. C++ Programming -Constructors and Destructors
  21. C++ Programming -OOPS Concepts
  22. C++ Programming - References
  23. C++ Programming - Functions
  24. C MCQS:-The ABC of C
  25. C MCQS Interview Questions
  26. C++ Questions and Answers OOPs Basic Concepts
  27. C++ Questions and Answers Returning Objects
  28. C Programming MCQ Part 1
  29. C Programming MCQ
  30. Computer Science & Engineering C Multiple Choice Questions set 1
  31. Computer Science & Engineering C Multiple Choice Questions set 2
  32. C Multiple Choice Questions C Functions Set 1
  33. C Multiple Choice Questions C Functions Set 2
  34. C Multiple Choice Questions C Operators
  35. C Multiple Choice Questions & AnswersConditional Expressions
  36. C Multiple Choice Questions & Answers Data Types
  37. C Multiple Choice Questions & Answers File Access
  38. Computer Science & Engineering Cloud Computing MCQs Part 1
  39. CPP Programming MCQ Set 1
  40. CPP Programming MCQ Set 2
Search
Olete Team
Online Exam TestTop Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Testwebsite is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!